/**
 * JS Table - project to manage tables
 * required jquery lib
 *
 * User: antosha
 * Date: 18.01.13
 */

/**
 * Default package
 */
var jst = {};

if(typeof window.$ == 'undefined') {
    window.$ = function(){};
}

/**
 * Inheritance interface. Uses temporary constructor.
 * @param {Function} childC
 * @param {Function} parentC
 */
jst.inherit = function(childC, parentC) {
    var temporaryC = function() {};
    temporaryC.prototype = parentC.prototype;

    childC.prototype = new temporaryC;
    childC.prototype.constructor = childC;

    // Link to parent's prototype.
    childC._super = parentC.prototype;
};

/**
 * Base module. It's not necessary, to implement full base class in simple
 * example, so let it just be an empty class, inherited from Object.
 * @constructor
 * @extends {Object}
 */
jst.BaseModule = function() {};
jst.inherit(jst.BaseModule, Object);